home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1994 November: Tool Chest / Dev.CD Nov 94.toast / Tool Chest / QuickDraw GX / QuickDraw GX Info / QuickDraw GX Interfaces / Interfaces & Libraries / Pascal Interfaces & Libraries / Pascal Interfaces / PrintingMessages.p < prev    next >
Encoding:
Text File  |  1994-03-24  |  21.2 KB  |  642 lines  |  [TEXT/MPS ]

  1. {
  2.     FILENAME
  3.         PrintingMessages.p
  4.  
  5.     DESCRIPTION
  6.         This file defines all the universal printing messages,
  7.         and Printing Manager API functions callable only from
  8.         within a message override.
  9.  
  10.     COPYRIGHT
  11.         Copyright © Apple Computer, Inc. 1989, 1990, 1991, 1992, 1993
  12.         All rights reserved. 
  13.     
  14. }
  15. {$IFC UNDEFINED UsingIncludes}
  16. {$SETC UsingIncludes := 0}
  17. {$ENDC}
  18.  
  19. {$IFC NOT UsingIncludes}
  20.     UNIT PrintingMessages;
  21.     INTERFACE
  22. {$ENDC}
  23.  
  24. {$IFC UNDEFINED UsingPrintingMessages}
  25. {$SETC UsingPrintingMessages := 1}
  26.  
  27. {$I+}
  28. {$SETC PrintingMessagesIncludes := UsingIncludes}
  29. {$SETC UsingIncludes := 1}
  30. {$IFC UNDEFINED UsingTypes}
  31. {$I $$Shell(PInterfaces)Types.p}
  32. {$ENDC}
  33. {$SETC UsingIncludes := PrintingMessagesIncludes}
  34.  
  35. CONST
  36.  
  37.  
  38.  
  39. {---------------------------------------}
  40. { dialog panel constants   }
  41. {---------------------------------------}
  42.     gxPanelNoEvt                     = 0;
  43.     gxPanelOpenEvt                     = 1;        { initialize and draw }
  44.     gxPanelCloseEvt                 = 2;        { your panel is going away ( panel switch; confirm or cancel ) }
  45.     gxPanelHitEvt                    = 3;        { there's a hit in your panel }
  46.     gxPanelActivateEvt                = 4;        { the dialog window has just been activated }
  47.     gxPanelDeactivateEvt             = 5;        { the dialog window is about to be deactivated }
  48.     gxPanelIconFocusEvt             = 6;        { the focus changes from the panel to the icon list }
  49.     gxPanelPanelFocusEvt             = 7;        { the focus changes from the icon list to the panel }
  50.     gxPanelFilterEvt                = 8;        { this is called to filter every event }
  51.     gxPanelCancelEvt                = 9;        { the user has cancelled the dialog }
  52.     gxPanelConfirmEvt                = 10;        { the user has confirmed the dialog }
  53.     gxPanelDialogEvt                = 11;        { event to be handle by dialoghandler ( you get to see all events ) }
  54.     gxPanelOtherEvt                    = 12;        { osEvts; etc. }
  55.     gxPanelUserWillConfirmEvt        = 13;        { user has selected confirm; time to parse panel interdependencies }
  56.  
  57. { possible panel responses to dialog handler calls }
  58.     gxPanelNoResult                 = 0;
  59.     gxPanelCancelConfirmation     = 1;        { only valid from panelUserWillConfirmEvt - used to keep the dialog from going away }
  60.  
  61.  
  62. { values for the evtAction field in PanelInfoRecord }
  63.     gxOtherAction                 = 0;                { current item will not change }
  64.     gxClosePanelAction            = 1;                { panel will be closed }
  65.     gxCancelDialogAction        = 2;                { dialog will be cancelled }
  66.     gxConfirmDialogAction        = 3;                { dialog will be confirmed }
  67.  
  68.     gxApplicationPanel         = 0;
  69.     gxExtensionPanel        = 1;
  70.     gxDriverPanel            = 2;
  71.     
  72.  
  73.     gxRangeNotParsed        = 0;        { default initial value }
  74.     gxRangeParsed            = 1;
  75.     gxRangeBadFromValue        = 2;
  76.     gxRangeBadToValue        = 3;
  77.  
  78. {----------------------------------------}
  79. { status-related constants...  }
  80. {----------------------------------------}
  81.     gxNonFatalError = 1;                { effects icon on spooling dialog }
  82.     gxFatalError = 2;                    { sends up cool alert on spooling dialog }
  83.     gxPrinterReady = 3;                    { signals PFE to leave alert mode }
  84.     gxUserAttention = 4;                { signals initiation of a modal alert }
  85.     gxUserAlert = 5;                    { signals initiation of a moveable modal alert }
  86.     gxPageTransmission = 6;                { signals page sent to printer; increments page count in strings to user }
  87.     gxOpenConnectionStatus = 7;            { signals PFE to begin animation on printer icon }
  88.     gxInformationalStatus = 8;            { default status type; no side effects }
  89.     gxSpoolingPageStatus = 9;            { signals page spooled; increments page count in spooling dialog }
  90.     gxEndStatus = 10;                    { signals end of spooling }
  91.     gxPercentageStatus = 11;            { signals the PFE as to the amount of the job which is currently complete }
  92.  
  93.  
  94. {-----------------------------------------------}
  95. { paper mapping-related constants...  }
  96. {-----------------------------------------------}
  97.     gxDefaultTrayMapping        = 0;
  98.     gxConfiguredTrayMapping        = 1;
  99.  
  100. { ------------------------------------------------------------------------------
  101.  
  102.                     Constants for Universal Printing Messages
  103.  
  104. -------------------------------------------------------------------------------- }
  105.  
  106.  
  107.  
  108. { options for gxCreateSpoolFile message }
  109.     gxNoCreateOptions    = $00000000;        { just create the file }
  110.     gxInhibitAlias        = $00000001;        { do not create an alias in the PMD folder }
  111.     gxInhibitUniqueName    = $00000002;        { do not append to the filename to make it unique }
  112.  
  113.  
  114. {options for gxCloseSpoolFile message }
  115.     gxNoCloseOptions    = $00000000;        { just close the file }
  116.     gxDeleteOnClose        = $00000001;        { delete the file rather than closing it }
  117.     gxUpdateJobData        = $00000002;        { write current job information into file prior to closing }
  118.     gxMakeRemoteFile    = $00000004;        { mark job as a remote file }
  119.  
  120.  
  121. { options for gxCreateImageFile message }
  122.     gxNoImageFile         = $00000000;                { don't create image file }
  123.     gxMakeImageFile     = $00000001;                { create an image file }
  124.     gxEachPlane            = $00000002;                { only save up planes before rewinding }
  125.     gxEachPage            = $00000004;                { save up entire pages before rewinding }
  126.     gxEntireFile        = gxEachPlane + gxEachPage;    { save up the entire file before rewinding }
  127.  
  128.  
  129. { options for gxBufferData message }
  130.     gxNoBufferOptions    = $00000000, 
  131.     gxMakeBufferHex        = $00000001; 
  132.     gxDontSplitBuffer    = $00000002;
  133.  
  134.  
  135.  
  136.  
  137. TYPE
  138.  
  139. {--------------------------}
  140. { abstract data types...   }
  141. {--------------------------}
  142.  
  143. gxSpoolFile = ^LONGINT;
  144. gxPanelEvent = LONGINT;
  145. gxPanelResult = LONGINT;
  146.  
  147. gxPanelInfoRecord  = PACKED RECORD
  148.     panelEvt: gxPanelEvent;            { why we're calling }
  149.     panelResId: INTEGER;            { 'ppnl' resource id of current panel }
  150.     pDlg: DialogPtr;                { pointer to dialog }
  151.     theEvent: EventRecordPtr;        { pointer to event }
  152.     itemHit: INTEGER;                { actual item number as dialog mgr thinks }
  153.     itemCount: INTEGER;                { number of items before your items }
  154.     evtAction: INTEGER;                { once this event is processed;; the action that will result }
  155.                                         { (only meaningful in filtering; used for parsing) }
  156.     errorStringId: INTEGER;            { STR id of string to put in error alert (0 means no string) }
  157.     theFormat: gxFormat;            { the current format (only meaningful in a format dialog) }
  158.     refCon: LongInt;                { refCon passed in PanelSetupRecord }
  159.     END;
  160.                     
  161.  
  162. gxPrintingPanelKind = LONGINT;
  163.  
  164. { The gxPanelSetupInfo structure is passed to the dialog handler when the client calls }
  165. { to setup panels for the dialog }
  166.  
  167.  
  168. gxPanelSetupRecord  = PACKED RECORD
  169.     panelKind: gxPrintingPanelKind;
  170.     panelResId: INTEGER;
  171.     resourceRefNum: INTEGER;
  172.     refCon: LongInt;
  173.     END;
  174.  
  175.  
  176. gxParsePageRangeResult = LONGINT;        { returned by gxParsePageRange message }
  177.  
  178. gxStatusRecord  = PACKED RECORD            { for status messages }
  179.     statusType: INTEGER;                { one of the ids listed above ( nonFatalError; etc. ) }
  180.     statusId: INTEGER;                    { specific status ( out of paper; etc. ) - To be defined }
  181.     statusAlertId: INTEGER;                {    cool alert id (if any) for status }
  182.     statusOwner: Signature;                { creator type of status owner }
  183.     statResId: INTEGER;                    { id for 'stat' resource }
  184.     statResIndex: INTEGER;                { index into 'stat' resource for this status }
  185.     dialogResult: INTEGER;                { id of button string selected on dismissal of cool alert }
  186.     bufferLen: INTEGER;                    { number of bytes in status buffer - total record size must be <= 512 }
  187.     statusBuffer: ARRAY [1..1] OF Byte;    { user response from alert }
  188.     END;
  189.  
  190.  
  191. gxDisplayRecord  = PACKED RECORD        { for WriteStatusToDTPWindow message }
  192.     useText: Boolean;
  193.     hPicture: Handle;
  194.     theText: Str255;
  195.     END;
  196.  
  197.  
  198. gxTrayMapping = LONGINT;
  199.  
  200. gxPrintingBuffer  = PACKED RECORD        { for gxDumpBuffer and gxFreeBuffer messages }
  201.     size: LongInt;                        {    size of buffer in bytes }
  202.     userData: LongInt;                    {    client assigned id for the buffer }
  203.     data: ARRAY [1..1] OF Byte;            { array of size bytes }
  204.     END;
  205.  
  206.  
  207.  
  208. gxPageInfoRecord  = PACKED RECORD        { for gxRenderPage message }
  209.     docPageNum: LongInt;                { number of page being printed }
  210.     copyNum: LongInt;                    { copy number being printed }
  211.     formatChanged: Boolean;                { true if format changed from last page }
  212.     pageChanged: Boolean;                { true if page contents changed from last page }
  213.     internalUse: LongInt;                { private }
  214.     END;
  215.  
  216.  
  217.  
  218. { ------------------------------------------------------------------------------
  219.  
  220.                 API Functions callable only from within message overrides
  221.  
  222. -------------------------------------------------------------------------------- }
  223.  
  224. FUNCTION GXGetJob: gxJob;
  225.     C;
  226.  
  227. FUNCTION GXGetMessageHandlerResFile: INTEGER;
  228.     C;
  229.     
  230. FUNCTION GXSpoolingAborted: Boolean;
  231.     C;
  232.     
  233. FUNCTION GXJobIdle: OSErr;
  234.     C;
  235.  
  236. FUNCTION GXReportStatus ( statusID: INTEGER;  statusIndex: INTEGER): OSErr;
  237.     C;
  238.  
  239. FUNCTION GXAlertTheUser (VAR theStatus: gxStatusRecord): OSErr;
  240.     C;
  241.  
  242. FUNCTION GXSetupDialogPanel (VAR theSetup: gxPanelSetupRecord): OSErr;
  243.     C;
  244.  
  245. FUNCTION GXCountTrays (VAR numTrays: gxTrayIndex): OSErr;
  246.     C;
  247.     
  248. FUNCTION GXGetTrayName (trayNumber: gxTrayIndex; VAR trayName: Str31): OSErr;
  249.     C;
  250.  
  251. FUNCTION GXSetTrayPaperType (whichTray: gxTrayIndex; thePaperType: gxPaperType): OSErr;
  252.     C;
  253.  
  254. FUNCTION GXGetTrayPaperType (whichTray: gxTrayIndex; thePaperType: gxPaperType): OSErr;
  255.     C;
  256.  
  257. FUNCTION GXGetTrayMapping (VAR theMapping: gxTrayMapping): OSErr;
  258.     C;
  259.  
  260. PROCEDURE GXCleanupStartJob;
  261.     C;
  262.  
  263. PROCEDURE GXCleanupStartPage;
  264.     C;
  265.  
  266. PROCEDURE GXCleanupOpenConnection;
  267.     C;
  268.  
  269. PROCEDURE GXCleanupStartSendPage;
  270.     C;
  271.  
  272.  
  273. { ------------------------------------------------------------------------------
  274.  
  275.                                 Universal Printing Messages
  276.  
  277. -------------------------------------------------------------------------------- }
  278.  
  279.  
  280. FUNCTION Send_GXJobIdle: OSErr;
  281.     C;
  282. FUNCTION Forward_GXJobIdle : OSErr;
  283.     C;
  284.  
  285. FUNCTION Send_GXJobStatus (VAR pStatus: gxStatusRecord): OSErr;
  286.     C;
  287. FUNCTION Forward_GXJobStatus (VAR pStatus: gxStatusRecord): OSErr;
  288.     C;
  289.  
  290. FUNCTION Send_GXPrintingEvent (theEvent: EventRecordPtr; filterEvent: Boolean): OSErr;
  291.     C;
  292. FUNCTION Forward_GXPrintingEvent (theEvent: EventRecordPtr; filterEvent: Boolean): OSErr;
  293.     C;
  294.  
  295.  
  296. FUNCTION Send_GXJobDefaultFormatDialog (VAR dlgResult: gxDialogResult): OSErr;
  297.     C;
  298. FUNCTION Forward_GXJobDefaultFormatDialog (VAR dlgResult: gxDialogResult): OSErr;
  299.     C;
  300.     
  301. FUNCTION Send_GXFormatDialog (theFormat: gxFormat; title: StringPtr; VAR dlgResult: gxDialogResult): OSErr;
  302.     C;
  303. FUNCTION Forward_GXFormatDialog (theFormat: gxFormat; title: StringPtr; VAR dlgResult: gxDialogResult): OSErr;
  304.     C;
  305.     
  306. FUNCTION Send_GXJobPrintDialog (VAR dlgResult: gxDialogResult): OSErr;
  307.     C;
  308. FUNCTION Forward_GXJobPrintDialog (VAR dlgResult: gxDialogResult): OSErr;
  309.     C;
  310.  
  311. FUNCTION Send_GXFilterPanelEvent (VAR pHitInfo: gxPanelInfoRecord; VAR returnImmed: Boolean): OSErr;
  312.     C;
  313.  
  314. FUNCTION Send_GXHandlePanelEvent (VAR pHitInfo: gxPanelInfoRecord; VAR panelResponse: gxPanelResult): OSErr;
  315.     C;
  316.  
  317. FUNCTION Send_GXParsePageRange (fromString: StringPtr; toString: StringPtr; VAR result: gxParsePageRangeResult): OSErr;
  318.     C;
  319. FUNCTION Forward_GXParsePageRange (fromString: StringPtr; toString: StringPtr; VAR result: gxParsePageRangeResult): OSErr;
  320.     C;
  321.     
  322.     
  323. FUNCTION Send_GXDefaultJob : OSErr;
  324.     C;
  325. FUNCTION Forward_GXDefaultJob : OSErr;
  326.     C;
  327.     
  328. FUNCTION Send_GXDefaultFormat (theFormat: gxFormat): OSErr;
  329.     C;
  330. FUNCTION Forward_GXDefaultFormat (theFormat: gxFormat): OSErr;
  331.     C;
  332.  
  333. FUNCTION Send_GXDefaultPaperType (thePaperType: gxPaperType ): OSErr;
  334.     C;
  335. FUNCTION Forward_GXDefaultPaperType (thePaperType: gxPaperType ): OSErr;
  336.     C;
  337.     
  338. FUNCTION Send_GXDefaultPrinter (thePrinter: gxPrinter): OSErr;
  339.     C;
  340. FUNCTION Forward_GXDefaultPrinter (thePrinter: gxPrinter): OSErr;
  341.     C;
  342.     
  343.  
  344. FUNCTION Send_GXCreateSpoolFile (pFileSpec: FSSpecPtr; createOptions: LongInt; VAR theSpoolFile: gxSpoolFile): OSErr;
  345.     C;
  346. FUNCTION Forward_GXCreateSpoolFile (pFileSpec: FSSpecPtr; createOptions: LongInt; VAR theSpoolFile: gxSpoolFile): OSErr;
  347.     C;
  348.     
  349. FUNCTION Send_GXSpoolPage (theSpoolFile: gxSpoolFile; theFormat: gxFormat; thePage: gxShape): OSErr;
  350.     C;
  351. FUNCTION Forward_GXSpoolPage (theSpoolFile: gxSpoolFile; theFormat: gxFormat; thePage: gxShape): OSErr;
  352.     C;
  353.  
  354. FUNCTION Send_GXSpoolData (theSpoolFile: gxSpoolFile; data: Ptr; VAR length: LongInt): OSErr;
  355.     C;
  356. FUNCTION Forward_GXSpoolData (theSpoolFile: gxSpoolFile; data: Ptr; VAR length: LongInt): OSErr;
  357.     C;
  358.  
  359. FUNCTION Send_GXSpoolResource (theSpoolFile: gxSpoolFile; theResource: Handle; theType: ResType; id: INTEGER): OSErr;
  360.     C;
  361. FUNCTION Forward_GXSpoolResource (theSpoolFile: gxSpoolFile; theResource: Handle; theType: ResType; id: INTEGER): OSErr;
  362.     C;
  363.  
  364. FUNCTION Send_GXCompleteSpoolFile (theSpoolFile: gxSpoolFile): OSErr;
  365.     C;
  366. FUNCTION Forward_GXCompleteSpoolFile (theSpoolFile: gxSpoolFile): OSErr;
  367.     C;
  368.  
  369.  
  370. FUNCTION Send_GXCountPages (theSpoolFile: gxSpoolFile; VAR numPages: LongInt): OSErr;
  371.     C;
  372. FUNCTION Forward_GXCountPages (theSpoolFile: gxSpoolFile; VAR numPages: LongInt): OSErr;
  373.     C;
  374.  
  375. FUNCTION Send_GXDespoolPage (theSpoolFile: gxSpoolFile; numPages: LongInt; theFormat: gxFormat; VAR thePage: gxShape; VAR formatChanged: Boolean): OSErr;
  376.     C;
  377. FUNCTION Forward_GXDespoolPage (theSpoolFile: gxSpoolFile; numPages: LongInt; theFormat: gxFormat; VAR thePage: gxShape; VAR formatChanged: Boolean): OSErr;
  378.     C;
  379.  
  380. FUNCTION Send_GXDespoolData (theSpoolFile: gxSpoolFile; data:Ptr; VAR length: LongInt): OSErr;
  381.     C;
  382. FUNCTION Forward_GXDespoolData (theSpoolFile: gxSpoolFile; data:Ptr; VAR length: LongInt): OSErr;
  383.     C;
  384.  
  385. FUNCTION Send_GXDespoolResource (theSpoolFile: gxSpoolFile; theType: ResType; id: INTEGER; VAR theResource: Handle): OSErr;
  386.     C;
  387. FUNCTION Forward_GXDespoolResource (theSpoolFile: gxSpoolFile; theType: ResType; id: INTEGER; VAR theResource: Handle): OSErr;
  388.     C;
  389.  
  390. FUNCTION Send_GXCloseSpoolFile (theSpoolFile: gxSpoolFile; closeOptions: LongInt): OSErr;
  391.     C;
  392. FUNCTION Forward_GXCloseSpoolFile (theSpoolFile: gxSpoolFile; closeOptions: LongInt): OSErr;
  393.     C;
  394.     
  395.     
  396. FUNCTION Send_GXStartJob (docName: StringPtr; pageCount: LongInt): OSErr;
  397.     C;
  398. FUNCTION Forward_GXStartJob (docName: StringPtr; pageCount: LongInt): OSErr;
  399.     C;
  400.     
  401. FUNCTION Send_GXFinishJob : OSErr;
  402.     C;
  403. FUNCTION Forward_GXFinishJob : OSErr;
  404.     C;
  405.     
  406. FUNCTION Send_GXStartPage (theFormat: gxFormat; numViewPorts: LongInt; VAR viewPortList: gxViewPort) : OSErr;
  407.     C;
  408. FUNCTION Forward_GXStartPage (theFormat: gxFormat; numViewPorts: LongInt; VAR viewPortList: gxViewPort) : OSErr;
  409.     C;
  410.  
  411. FUNCTION Send_GXFinishPage : OSErr;
  412.     C;
  413. FUNCTION Forward_GXFinishPage : OSErr;
  414.     C;
  415.     
  416. FUNCTION Send_GXPrintPage (theFormat: gxFormat; thePage: gxShape) : OSErr;
  417.     C;
  418. FUNCTION Forward_GXPrintPage (theFormat: gxFormat; thePage: gxShape) : OSErr;
  419.     C;
  420.     
  421.  
  422. FUNCTION Send_GXSetupImageData (imageData: Ptr) : OSErr;
  423.     C;
  424. FUNCTION Forward_GXSetupImageData (imageData: Ptr) : OSErr;
  425.     C;
  426.  
  427. FUNCTION Send_GXImageJob(theSpoolFile: gxSpoolFile, VAR closeOptions: LongInt): OSErr;
  428.     C;
  429. FUNCTION Forward_GXImageJob (theSpoolFile: gxSpoolFile, VAR closeOptions: LongInt): OSErr;
  430.     C;
  431.  
  432. FUNCTION Send_GXImageDocument (theSpoolFile: gxSpoolFile; imageData: Ptr): OSErr;
  433.     C;
  434. FUNCTION Forward_GXImageDocument (theSpoolFile: gxSpoolFile; imageData: Ptr): OSErr;
  435.     C;
  436.  
  437. FUNCTION Send_GXImagePage (theSpoolFile: gxSpoolFile; pageNumber: LongInt; theFormat: gxFormat; imageData: Ptr): OSErr;
  438.     C;
  439. FUNCTION Forward_GXImagePage (theSpoolFile: gxSpoolFile; long pageNumber, theFormat: gxFormat; imageData: Ptr): OSErr;
  440.     C;
  441.  
  442. FUNCTION Send_GXRenderPage (theFormat: gxFormat; thePage: gxShape; VAR pageInfo: gxPageInfoRecord; imageData: Ptr): OSErr;
  443.     C;
  444. FUNCTION Forward_GXRenderPage (theFormat: gxFormat; thePage: gxShape; VAR pageInfo: gxPageInfoRecord; imageData: Ptr): OSErr;
  445.     C;
  446.  
  447.  
  448. FUNCTION Send_GXCreateImageFile (pFileSpec: FSSpecPtr; imageFileOptions: LongInt; VAR theImageFile: LongInt): OSErr;
  449.     C;
  450. FUNCTION Forward_GXCreateImageFile (pFileSpec: FSSpecPtr; imageFileOptions: LongInt; VAR theImageFile: LongInt): OSErr;
  451.     C;
  452.  
  453.  
  454. FUNCTION Send_GXOpenConnection : OSErr;
  455.     C;
  456. FUNCTION Forward_GXOpenConnection : OSErr;
  457.     C;
  458.  
  459. FUNCTION Send_GXCloseConnection : OSErr;
  460.     C;
  461. FUNCTION Forward_GXCloseConnection : OSErr;
  462.     C;
  463.  
  464. FUNCTION Send_GXStartSendPage (theFormat: gxFormat): OSErr;
  465.     C;
  466. FUNCTION Forward_GXStartSendPage (theFormat: gxFormat): OSErr;
  467.     C;
  468.  
  469. FUNCTION Send_GXFinishSendPage : OSErr;
  470.     C;
  471. FUNCTION Forward_GXFinishSendPage : OSErr;
  472.     C;
  473.  
  474.  
  475. FUNCTION Send_GXWriteData (data: Ptr; length: LongInt): OSErr;
  476.     C;
  477. FUNCTION Forward_GXWriteData (data: Ptr; length: LongInt): OSErr;
  478.     C;
  479.  
  480. FUNCTION Send_GXBufferData (data: Ptr; length: LongInt; bufferOptions: LongInt ): OSErr;
  481.     C;
  482. FUNCTION Forward_GXBufferData (data: Ptr; length: LongInt; bufferOptions: LongInt ): OSErr;
  483.     C;
  484.  
  485. FUNCTION Send_GXDumpBuffer (VAR theBuffer: gxPrintingBuffer): OSErr;
  486.     C;
  487. FUNCTION Forward_GXDumpBuffer (VAR theBuffer: gxPrintingBuffer): OSErr;
  488.     C;
  489.  
  490. FUNCTION Send_GXFreeBuffer (VAR theBuffer: gxPrintingBuffer): OSErr;
  491.     C;
  492. FUNCTION Forward_GXFreeBuffer (VAR theBuffer: gxPrintingBuffer): OSErr;
  493.     C;
  494.  
  495.  
  496. FUNCTION Send_GXCheckStatus (data: Ptr; length: LongInt; statusType: INTEGER; owner: Signature ): OSErr;
  497.     C;
  498. FUNCTION Forward_GXCheckStatus (data: Ptr; length: LongInt; statusType: INTEGER; owner: Signature ): OSErr;
  499.     C;
  500.  
  501. FUNCTION Send_GXGetDeviceStatus (cmdData: Ptr; cmdSize: LongInt; responseData: Ptr; VAR responseSize: LongInt; termination: Str255 ): OSErr;
  502.     C;
  503. FUNCTION Forward_GXGetDeviceStatus (Ptr cmdData, long cmdSize, Ptr responseData, long *responseSize, Str255 termination): OSErr;
  504.     C;
  505.  
  506.  
  507. FUNCTION Send_GXFetchTaggedData (data: Ptr; length: LongInt; VAR data: Handle; owner: Signature ): OSErr;
  508.     C;
  509. FUNCTION Forward_GXFetchTaggedData (data: Ptr; length: LongInt; VAR data: Handle; owner: Signature ): OSErr;
  510.     C;
  511.  
  512.  
  513. OSErr    Send_GXGetDTPMenuList (menuHdl: MenuHandle): OSErr;
  514.     C;
  515. OSErr    Forward_GXGetDTPMenuList (menuHdl: MenuHandle): OSErr;
  516.     C;
  517.  
  518. OSErr    Send_GXDTPMenuSelect (id: INTEGER): OSErr;
  519.     C;
  520. OSErr    Forward_GXDTPMenuSelect (id: INTEGER): OSErr;
  521.     C;
  522.  
  523. OSErr    Send_GXHandleAlertFilter (theJob: gxJob; VAR pStatusRec: gxStatusRecord; pDialog: DialogPtr; theEvent: EventRecordPtr; VAR itemHit: INTEGER; VAR returnImmed: Boolean): OSErr;
  524.     C;
  525. OSErr    Forward_GXHandleAlertFilter (theJob: gxJob; VAR pStatusRec: gxStatusRecord; pDialog: DialogPtr; theEvent: EventRecordPtr; VAR itemHit: INTEGER; VAR returnImmed: Boolean): OSErr;
  526.     C;
  527.     
  528.  
  529. FUNCTION Send_GXJobFormatModeQuery (theQuery: gxQueryType; srcData: Ptr; dstData: Ptr): OSErr;
  530.     C;
  531. FUNCTION Forward_GXJobFormatModeQuery (theQuery: gxQueryType; srcData: Ptr; dstData: Ptr): OSErr;
  532.     C;
  533.  
  534. FUNCTION Send_GXWriteStatusToDTPWindow (VAR pStatusRec: gxStatusRecord; VAR pDisplay: gxDisplayRecord): OSErr;
  535.     C;
  536. FUNCTION Forward_GXWriteStatusToDTPWindow (VAR pStatusRec: gxStatusRecord; VAR pDisplay: gxDisplayRecord): OSErr;
  537.     C;
  538.  
  539. FUNCTION Send_GXInitializeStatusAlert (VAR pStatusRec: gxStatusRecord; pDialog: DialogPtr): OSErr;
  540.     C;
  541. FUNCTION Forward_GXInitializeStatusAlert (VAR pStatusRec: gxStatusRecord; pDialog: DialogPtr): OSErr;
  542.     C;
  543.  
  544. FUNCTION Send_GXHandleAlertStatus (VAR pStatusRec: gxStatusRecord): OSErr;
  545.     C;
  546. FUNCTION Forward_GXHandleAlertStatus (VAR pStatusRec: gxStatusRecord): OSErr;
  547.     C;
  548.     
  549. FUNCTION Send_GXHandleAlertEvent (VAR pStatusRec: gxStatusRecord; pDialog: DialogPtr; theEvent: EventRecordPtr; VAR response: INTEGER): OSErr;
  550.     C;
  551. FUNCTION Forward_GXHandleAlertEvent (VAR pStatusRec: gxStatusRecord; pDialog: DialogPtr; theEvent: EventRecordPtr; VAR response: INTEGER): OSErr;
  552.     C;
  553.         
  554.  
  555. PROCEDURE Send_GXCleanupStartJob;
  556.     C;
  557. PROCEDURE Forward_GXCleanupStartJob;
  558.     C;
  559.  
  560. PROCEDURE Send_GXCleanupStartPage;
  561.     C;
  562. PROCEDURE Forward_GXCleanupStartPage;
  563.     C;
  564.  
  565. PROCEDURE Send_GXCleanupOpenConnection;
  566.     C;
  567. PROCEDURE Forward_GXCleanupOpenConnection;
  568.     C;
  569.  
  570. PROCEDURE Send_GXCleanupStartSendPage;
  571.     C;
  572. PROCEDURE Forward_GXCleanupStartSendPage;
  573.     C;
  574.  
  575.  
  576. FUNCTION Send_GXDefaultDesktopPrinter (dtpName: Str31): OSErr;
  577.     C;
  578. FUNCTION Forward_GXDefaultDesktopPrinter (dtpName: Str31): OSErr;
  579.     C;
  580.     
  581. FUNCTION Send_GXCaptureOutputDevice (capture: Boolean): OSErr;
  582.     C;
  583. FUNCTION Forward_GXCaptureOutputDevice (capture: Boolean): OSErr;
  584.     C;
  585.  
  586.  
  587. FUNCTION Send_GXOpenConnectionRetry (theType: ResType; retry: LongInt, VAR retryopenPtr: Boolean; anErr: OSErr): OSErr;
  588.     C;
  589. FUNCTION Forward_GXOpenConnectionRetry (theType: ResType; retry: LongInt, VAR retryopenPtr: Boolean; anErr: OSErr): OSErr;
  590.     C;
  591.     
  592. FUNCTION Send_GXExamineSpoolFile (theSpoolFile: gxSpoolFile): OSErr;
  593.     C;
  594. FUNCTION Forward_GXExamineSpoolFile (theSpoolFile: gxSpoolFile): OSErr;
  595.     C;
  596.  
  597. FUNCTION Send_GXFinishSendPlane : OSErr;
  598.     C;
  599. FUNCTION Forward_GXFinishSendPlane : OSErr;
  600.     C;
  601.  
  602. FUNCTION Send_GXDoesPaperFit( whichTray: gxTrayIndex; paper: gxPaperType; VAR fits: Boolean ): OSErr;
  603.     C;
  604. FUNCTION Forward_GXDoesPaperFit( whichTray: gxTrayIndex; paper: gxPaperType; VAR fits: Boolean ): OSErr;
  605.     C;
  606.     
  607. FUNCTION Send_GXChooserMessage (message: INTEGER; caller: INTEGER; objName: StringPtr;
  608.                                     zoneName: StringPtr; theList:ListHandle; p2: LongInt): OSErr;
  609.     C;
  610. FUNCTION Forward_GXChooserMessage (message: INTEGER; caller: INTEGER; objName: StringPtr;
  611.                                     zoneName: StringPtr; theList:ListHandle; p2: LongInt): OSErr;
  612.     C;
  613.  
  614.  
  615. FUNCTION Send_GXFindPrinterProfile (thePrinter: gxPrinter; searchData: Ptr; index: LongInt; VAR returnedProfile; VAR numProfiles: LongInt): OSErr;
  616.     C;
  617. FUNCTION Forward_GXFindPrinterProfile (thePrinter: gxPrinter; searchData: Ptr; index: LongInt; VAR returnedProfile; VAR numProfiles: LongInt): OSErr;
  618.     C;
  619.     
  620. FUNCTION Send_GXFindFormatProfile (theFormat: gxFormat; searchData: Ptr; index: LongInt; VAR returnedProfile; VAR numProfiles: LongInt): OSErr;
  621.     C;
  622. FUNCTION Forward_GXFindFormatProfile (theFormat: gxFormat; searchData: Ptr; index: LongInt; VAR returnedProfile; VAR numProfiles: LongInt): OSErr;
  623.     C;
  624.     
  625. FUNCTION Send_GXSetPrinterProfile (thePrinter: gxPrinter; oldProfile: gxColorProfile; newProfile: gxColorProfile): OSErr;
  626.     C;
  627. FUNCTION Forward_GXSetPrinterProfile (thePrinter: gxPrinter, oldProfile: gxColorProfile; newProfile: gxColorProfile): OSErr;
  628.     C;
  629.  
  630. FUNCTION Send_GXSetFormatProfile (theFormat: gxFormat; oldProfile: gxColorProfile; newProfile: gxColorProfile): OSErr;
  631.     C;
  632. FUNCTION Forward_GXSetFormatProfile (theFormat: gxFormat; oldProfile: gxColorProfile; newProfile: gxColorProfile): OSErr;
  633.     C;
  634.  
  635.  
  636.  
  637. {$ENDC}    { UsingPrintingMessages }
  638.  
  639. {$IFC NOT UsingIncludes}
  640.     END.
  641. {$ENDC}
  642.